module.exports = options =>{
  return async function auth(ctx, next) {
    await next();
    if(parseInt(ctx.status) === 404){
      await ctx.render("client/Error404.js")
    }
  }
};